﻿<%@ page language="java" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<jsp:include page="./common/common.jsp"></jsp:include>
<title></title>
</head>
<body>
<div data-role="page" id="foodTypeInput" data-title="Home">
<script type="text/javascript" src="../js/foodInfoInput.js"></script>
  <div data-role="header" data-position="fixed">
    <h1></h1>
  </div>
  <div data-role="content">
    <s:form action="/admin/addFoodInfo.action" theme="simple"
      data-transition="slide" method="post" enctype="multipart/form-data"
      data-ajax="false">
      <div data-role="fieldcontain">
        <label for="name">名称：</label>
        <input type="text" id="name" name="name" value="<s:property value="food.name"/>">
      </div>
      <div data-role="fieldcontain">
        <label for="typeId">类型:</label>
        <s:select list="typeList" theme="simple" listValue="id" name="name" listKey="<s:property value="food.id"/>" headerKey="" headerValue=""></s:select>
      </div>
      <div data-role="fieldcontain">
        <label for="name">价格：</label>
        <input type="text" id="name" name="name" value="<s:property value="food.price"/>"></input>
      </div>
      <div data-role="fieldcontain">
        <label for="backup1">圖片</label>
        <input type="file" name="backup1" id="backup1"></input>
      </div>
      <s:submit value="Add"></s:submit>
    </s:form>
  </div>
  <s:hidden name="fromPage"></s:hidden>
  <div data-role="footer" data-position="fixed">
    <h1>Home</h1>
  </div>
</div>
<div>
</div>
</body>
</html>